<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/jsp/common/head.jsp" %>

<div class="container">
    <form id="mh-login-form" method="post" action="${pageContext.request.contextPath}/user?method=login"
          class="form-horizontal mh-login-wrap">

        <div class="mh-login-list">
            <p id="mh-login-status" class="col-md-offset-2 col-md-10 text-danger">${error}</p>
            <div class="form-group">
                <label class="col-sm-2 control-label">用户名 :</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="username" placeholder="username">
                </div>
            </div>
            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">密码 :</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="inputPassword3" name="password"
                           placeholder="password">
                </div>
            </div>
            <div class="form-group mh-login-item-not-necessary">
                <label for="inputPassword3" class="col-sm-2 control-label">再次密码 :</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="inputPassword3" placeholder="password">
                </div>
            </div>
            <div class="form-group mh-login-item-not-necessary">
                <label for="inputPassword3" class="col-sm-2 control-label">手机号码 :</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" name="phoneNum" placeholder="phone number">
                </div>
            </div>
            <div class="form-group mh-login-item-not-necessary">
                <label for="inputPassword3" class="col-sm-2 control-label">昵称 :</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" name="phoneNum" placeholder="昵称">
                </div>
            </div>
            <div class="form-group mh-login-item-not-necessary">
                <label for="inputEmail3" class="col-sm-2 control-label">(非必填)Email :</label>
                <div class="col-sm-10">
                    <input type="email" class="form-control" id="inputEmail3" name="email" placeholder="Email">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <a id="mh-login-tip" style="cursor:pointer;">没有账号？点击注册</a>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default" id="mh-login-action">登陆</button>
                </div>
            </div>
        </div>

    </form>
</div>

<%@include file="/jsp/common/foot.jsp" %>
<script charset="UTF-8" src="${pageContext.request.contextPath}/js/login.js"></script>
